projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dae378
)
Treat empty triple quote
author
Takafumi Arakaki
<aka.tkf@gmail.com>
Thu, 17 May 2012 03:03:41 +0000
(
00:03
-0300)
committer
Fabián Ezequiel Gallina
<fgallina@gnu.org>
Thu, 17 May 2012 03:03:41 +0000
(
00:03
-0300)
Fix #70
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 4671d9f0f1aa66a06a658e5f93fbf7f84c7a65a4..7cfbb34aea398c2088e182e8008532c5fff520b8 100644
(file)
--- a/
lisp/progmodes/python.el
+++ b/
lisp/progmodes/python.el
@@
-465,6
+465,7
@@
This variant of `rx' supports common python named REGEXPS."
;; string delimiters. Fixme: Is there a better way?
;; First avoid a sequence preceded by an odd number of backslashes.
`((,(concat "\\(?:\\([RUru]\\)[Rr]?\\|^\\|[^\\]\\(?:\\\\.\\)*\\)" ;Prefix.
+ "\\(?:''''''\\|\"\"\"\"\"\"\\)" ; Empty triple-quote
"\\(?:\\('\\)'\\('\\)\\|\\(?2:\"\\)\"\\(?3:\"\\)\\)")
(3 (python-quote-syntax)))))